package cn.tedu.audit.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;

import java.util.Date;
import java.util.List;

@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
public class AuditVO {
    @ApiModelProperty(value = "申请表id")
    Long id;
    @ApiModelProperty(value = "请假人姓名")
    String username;
    @ApiModelProperty(value = "申请人id")
    Long uid;
    @ApiModelProperty(value = "开始时间")
    Date stime;
    @ApiModelProperty(value = "结束时间")
    Date etime;

    //因为审批时需要看到申请的所有详细数据，所以需要把申请单的详细数据也封装到VO中
    @ApiModelProperty(value = "请假理由")
    String reason;
    @ApiModelProperty(value = "备注")
    String rmark;
    @ApiModelProperty(value = "请假类型")
    String type;
    @ApiModelProperty(value = "拒绝原因")
    String rejectReason;
    @ApiModelProperty(value = "请假材料")
    String imgUrl;
    @ApiModelProperty(value = "申请状态")
    String status;
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    Date createTime;
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    Date updateTime;
    @ApiModelProperty(value = "审批人id集合")
    List<Long> auditUserIdList;//[106,103]
    @ApiModelProperty(value = "审批人姓名,字符串分隔")
    String auditUsernameList;//"moly,tom"
}
